package de.baumann.browser.adapter

import android.widget.ImageView
import com.chad.library.adapter.base.BaseQuickAdapter
import com.chad.library.adapter.base.BaseViewHolder
import de.baumann.browser.R
import de.baumann.browser.api.net.vo.duobao.WuLiu


class WuLiuAdapter :BaseQuickAdapter<WuLiu,BaseViewHolder>(R.layout.item_wuliu){
    override fun convert(helper: BaseViewHolder, item: WuLiu) {
        val wlbj:ImageView = helper.getView(R.id.wlbj)
        if (helper.layoutPosition==0){
            helper.setTextColor(R.id.wldz,mContext.resources.getColor(R.color.color_DF2627))
            wlbj.setImageResource(R.drawable.shape_dot_r)
        }else{
            helper.setTextColor(R.id.wldz,mContext.resources.getColor(R.color.color_999999))
            wlbj.setImageResource(R.drawable.shape_dot_9)
        }
        helper.setText(R.id.wldz,item.time+item.status)
    }

}